package com.litlum.fibermana.service.impl;

import com.litlum.fibermana.entity.Pallet;
import com.litlum.fibermana.repo.PalletRepository;
import com.litlum.fibermana.service.IPalletService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PalletServiceImpl implements IPalletService {
    @Autowired
    private PalletRepository palletRepository;

    @Override
    public List<Pallet> findAll() {
        return palletRepository.findAll();
    }

    @Override
    public void save(Pallet pallet) {
        palletRepository.save(pallet);
    }
}
